package com.ciaojian.client.controller;

import com.ciaojian.client.service.WorkServiceServiceImpl;
import com.ciaojian.core.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Atlakyn
 */
@Api(tags = "发型师服务接口")
@RestController
@RequestMapping("/worker-service")
public class WorkerServiceController {
    @Resource
    private WorkServiceServiceImpl dWorkServiceService;

    @ApiOperation("根据发型师id获取发型师服务列表")
    @ApiImplicitParam(name = "workerId", value = "发型师id")
    @GetMapping("/{workerId}")
    public Result getWorkerServices(@PathVariable Integer workerId, Integer isShow) {
        return Result.ok(dWorkServiceService.getByWorkerIdList(workerId, isShow));
    }
}













